package com.crm.mapper;

import com.crm.base.BaseMapper;
import com.crm.domain.entity.OrderDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单详情Mapper
 */
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
    /*
       根据订单id删除订单详情
     */
    Integer deleteByOid(Integer id);


    /*
        客户贡献分析
     */
    List<Map<String, Object>> findByCustomer(@Param("name") String name, @Param("priceMin") Integer priceMin, @Param("price") Integer price, @Param("date") String date);
}
